package com.pingan.project.autosendsms;

import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import android.os.Looper;
import android.support.annotation.Nullable;
import android.util.Log;
import android.widget.Toast;

/**
 * Created by hua on 2016/12/20.
 */

public class SendSMSService extends Service {
    private static final String TAG = SendSMSService.class.getSimpleName();

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        Log.e(TAG, "SendSMSService onCreate");
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                Log.e(TAG, "postDelayed==start");
                Toast.makeText(SendSMSService.this, "SendSMSService------------", Toast.LENGTH_SHORT).show();
                Log.e(TAG, "===postDelayed  end==");
            }
        }, 10000);


    }
}
